import {NgModule, ErrorHandler, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA} from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import {MyuploadPage} from '../pages/myupload/myupload';
import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';
import {StudyPage} from  '../pages/study/study'
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import {PhotoiconPageModule} from "../pages/photoicon/photoicon.module";
import {AboutpersonPage} from "../pages/aboutperson/aboutperson";
import {KepuPage} from "../pages/kepu/kepu";
import {BozhuinfoPage} from "../pages/bozhuinfo/bozhuinfo";
import {BozhulistPage} from "../pages/bozhulist/bozhulist";
import {HuodongPage} from "../pages/huodong/huodong";
import {HuodonginfoPage} from "../pages/huodonginfo/huodonginfo";
import {ZuopinPage} from "../pages/zuopin/zuopin";
import {ZuopininfoPage} from "../pages/zuopininfo/zuopininfo";
import {HttpClientJsonpModule, HttpClientModule} from "@angular/common/http";
import { JidihttpProvider } from '../providers/jidihttp/jidihttp';
import {ComponentsModule} from "../components/components.module";
import {FormsModule} from "@angular/forms";
import {CommonModule} from "@angular/common";
import {KepujidiinfoPage} from "../pages/kepujidiinfo/kepujidiinfo";
import {BaikelistPage} from "../pages/baikelist/baikelist";
import {BaikelistinfoPage} from "../pages/baikelistinfo/baikelistinfo";
import {LoginPage} from "../pages/login/login";
import {WodezuopinPage} from "../pages/wodezuopin/wodezuopin";
import {UserxiugaiPage} from "../pages/userxiugai/userxiugai";
import {Camera} from "@ionic-native/camera";
import {ImagePicker} from "@ionic-native/image-picker";
import {HuifuPage} from "../pages/huifu/huifu";
// import {PubuPage} from "../pages/pubu/pubu";
import {ZuopinmyPage} from "../pages/zuopinmy/zuopinmy";
import {ZuopinmyinfoPage} from "../pages/zuopinmyinfo/zuopinmyinfo";


@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    StudyPage,
    MyuploadPage,
    AboutpersonPage,
    KepuPage,
    KepujidiinfoPage,
    BozhuinfoPage,
    BozhulistPage,
    HuodongPage,
    HuodonginfoPage,
    ZuopinPage,
    ZuopininfoPage,
    BaikelistPage,
    BaikelistinfoPage,
    LoginPage,
    WodezuopinPage,
    UserxiugaiPage,
    HuifuPage,
    // PubuPage,
    ZuopinmyPage,
    ZuopinmyinfoPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp,{backButtonText:'返回'}),
    PhotoiconPageModule,
    HttpClientJsonpModule,
    HttpClientModule,
    ComponentsModule,
    FormsModule,
    CommonModule
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    StudyPage,
    MyuploadPage,
    AboutpersonPage,
    KepuPage,
    KepujidiinfoPage,
    BozhuinfoPage,
    BozhulistPage,
    HuodongPage,
    HuodonginfoPage,
    ZuopinPage,
    ZuopininfoPage,
    BaikelistPage,
    BaikelistinfoPage,
    LoginPage,
    WodezuopinPage,
    UserxiugaiPage,
    HuifuPage,
    // PubuPage,
    ZuopinmyPage,
    ZuopinmyinfoPage
  ],
  providers: [
    Camera,
    ImagePicker,
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    JidihttpProvider
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA,NO_ERRORS_SCHEMA]
})
export class AppModule {}
